# coding:utf8
from django.conf.urls import url

from classview.views import my_decorator
# from . import views
from .views import DemoView

app_name = 'classview'
urlpatterns = [
    # url(路径，视图)
    # url(r'^register/', views.DemoView.as_view(), name='register'),

    # 这个方式会为类视图中的所有请求方法都加上装饰器行为
    # url(r'^demoview/$', my_decorator(DemoView.as_view())),
    url(r'^demoview/$', DemoView.as_view()),

]
